<?php
namespace app\common\validate;

/**
* 设置模型
*/
class News extends Base{

	protected $rule = array(
		'title'   => 'require|length:1,30',
        'content' => 'require'
	);
	protected $message = array(
		'title.require'   => '标题必须！',
		'title.unique'    => '标题已存在！',
		'content.require'   => '内容不能为空！',
	);
}
